{template header.html}
<script type="text/javascript">
$(function() {
	SwapTab({$page});
});
function dr_to_key() {
	$.post("{dr_url('system/syskey')}", function(data){
		$("#sys_key").val(data);
	});
}
</script>
<form action="" method="post" name="myform" id="myform">
<input name="page" id="page" type="hidden" value="{$page}" />
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}<span>|</span><a href="{SYS_HELP_URL}4.html" target="_blank"><em>{lang('help')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="table-list col-tab">
		<ul class="tabBut cu-li">
			<li onclick="SwapTab(0)">{lang('html-083')}</li>
			<li onclick="SwapTab(1)">{lang('213')}</li>
			<li onclick="SwapTab(2)">{lang('html-449')}</li>
			<li onclick="SwapTab(3)">{lang('html-522')}</li>
			<li onclick="SwapTab(4)">{lang('html-550')}</li>
			<li onclick="SwapTab(5)">{lang('392')}</li>
		</ul>
		<div class="contentList pad-10">
			<div id="cnt_0" style="display:none" class="dr_hide">
				<table width="100%" class="table_form">
                <tr>
                    <th width="200">{lang('html-435')}： </th>
                    <td>
                    <input type="radio" name="data[SYS_DEBUG]" value="TRUE" {if $data['SYS_DEBUG']}checked{/if} />&nbsp;<label>{lang('open')}</label>
                    &nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[SYS_DEBUG]" value="FALSE" {if !$data['SYS_DEBUG']}checked{/if} />&nbsp;<label>{lang('close')}</label>
					<div class="onShow">{lang('html-445')}</div>
                    </td>
                </tr>
                <tr>
                    <th>{lang('html-811')}： </th>
                    <td>
                        <input type="radio" name="data[SYS_UPDATE]" value="TRUE" {if $data['SYS_UPDATE']}checked{/if} />&nbsp;<label>{lang('open')}</label>
                        &nbsp;&nbsp;&nbsp;
                        <input type="radio" name="data[SYS_UPDATE]" value="FALSE" {if !$data['SYS_UPDATE']}checked{/if} />&nbsp;<label>{lang('close')}</label>
                        <div class="onShow">{lang('html-812')}</div>
                    </td>
                </tr>
				<tr>
                    <th>{lang('html-436')}： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SYS_KEY]" id="sys_key" value="{if $data['SYS_KEY']}***{/if}" size="20" />
					<input class="button" type="button" name="button" onclick="dr_to_key()" value="{lang('html-438')}" />
					<div class="onShow">{lang('html-437')}</div>
                    </td>
                </tr>
				<tr>
                    <th>{lang('html-439')}： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SYS_EMAIL]" value="{$data['SYS_EMAIL']}" size="32" />&nbsp;
					<div class="onShow">{lang('html-440')}</div>
                    </td>
                </tr>
				<tr>
                    <th>SITE_EXPERIENCE： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SITE_EXPERIENCE]" value="{$data['SITE_EXPERIENCE']}" size="32" />&nbsp;
					<div class="onShow">{lang('html-441')}</div>
                    </td>
                </tr>
				<tr>
                    <th>SITE_SCORE： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SITE_SCORE]" value="{$data['SITE_SCORE']}" size="32" />&nbsp;
					<div class="onShow">{lang('html-442')}</div>
                    </td>
                </tr>
				<tr>
                    <th>SITE_MONEY： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SITE_MONEY]" value="{$data['SITE_MONEY']}" size="32" />&nbsp;
					<div class="onShow">{lang('html-443')}</div>
                    </td>
                </tr>
				<tr class="">
                    <th>{lang('html-477')}： </th>
                    <td>
					{dr_lang('html-478', '<input class="input-text" type="text" name="data[SITE_CONVERT]" value="'.$data['SITE_CONVERT'].'" size="10" />')}
                    </td>
                </tr>
				</table>
			</div>
            <div id="cnt_1" style="display:none" class="dr_hide">
                <table width="100%" class="table_form">
                    <tr>
                        <th width="200">{lang('html-568')}： </th>
                        <td>
                            <input class="input-text" type="text" name="data[SYS_ATTACHMENT_DIR]" value="{$data['SYS_ATTACHMENT_DIR']}" size="32" />&nbsp;
                            <div class="onShow">{lang('html-569')}</div>
                        </td>
                    </tr>
                    <tr>
                        <th>{lang('html-804')}： </th>
                        <td>
                            <input class="input-text" type="text" name="data[SYS_UPLOAD_DIR]" value="{$data['SYS_UPLOAD_DIR']}" size="32" />&nbsp;
                            <div class="onShow">{if $is_upload}{lang('html-805')}{else}<font color="red">此目录不存在</font>{/if}</div>
                        </td>
                    </tr>
                    <tr>
                        <th>{lang('html-060')}： </th>
                        <td>
                            <input class="input-text" type="text" name="data[SYS_ATTACHMENT_URL]" value="{$data['SYS_ATTACHMENT_URL']}" size="32" />&nbsp;
                            <div class="onShow">{lang('html-177')}</div>
                        </td>
                    </tr>
                </table>
            </div>
			<div id="cnt_2" style="display:none" class="dr_hide">
				<table width="100%" class="table_form">

                    <tr>
                        <th>{lang('html-549')}： </th>
                        <td>
                            <input class="input-text" type="text" name="data[SYS_CMS]" value="{$data['SYS_CMS']}" size="20" />&nbsp;

                        </td>
                    </tr>
                    <tr>
                        <th>{lang('html-809')}： </th>
                        <td>
                            <input class="input-text" type="text" name="data[SYS_NAME]" value="{$data['SYS_NAME']}" size="20" />&nbsp;

                        </td>
                    </tr>
                    <tr>
                        <th>{lang('html-810')}： </th>
                        <td>
                            <span id="show_thumb"><a href="javascript:;" onclick="dr_show_file_info('/dayrui/statics/images/alogo.png')"><img align="absmiddle" src="/dayrui/statics/images/ext/jpg.gif"></a></span>
                            /dayrui/statics/images/alogo.png
                        </td>
                    </tr>
                    <tr>
                        <th>{lang('html-036')}： </th>
                        <td>
                            <input type="radio" name="data[SYS_NEWS]" value="TRUE" {if $data['SYS_NEWS']}checked{/if} />&nbsp;<label>{lang('open')}</label>
                            &nbsp;&nbsp;&nbsp;
                            <input type="radio" name="data[SYS_NEWS]" value="FALSE" {if !$data['SYS_NEWS']}checked{/if} />&nbsp;<label>{lang('close')}</label>
                        </td>
                    </tr>
                <tr>
                    <th width="200">{lang('html-444')}： </th>
                    <td>
                    <input type="radio" name="data[SYS_LOG]" value="TRUE" {if $data['SYS_CMS']}checked{/if} />&nbsp;<label>{lang('open')}</label>
                    &nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[SYS_LOG]" value="FALSE" {if !$data['SYS_LOG']}checked{/if} />&nbsp;<label>{lang('close')}</label>
					<div class="onShow">{lang('html-446')}</div>
                    </td>
                </tr>
                    <tr>
                        <th>{lang('html-447')}： </th>
                        <td>
                            <input type="radio" name="data[SITE_ADMIN_CODE]" value="TRUE" {if $data['SITE_ADMIN_CODE']}checked{/if} />&nbsp;<label>{lang('open')}</label>
                            &nbsp;&nbsp;&nbsp;
                            <input type="radio" name="data[SITE_ADMIN_CODE]" value="FALSE" {if !$data['SITE_ADMIN_CODE']}checked{/if} />&nbsp;<label>{lang('close')}</label>
                        </td>
                    </tr>
                <tr class="">
                    <th>{lang('html-448')}： </th>
                    <td>
					<input class="input-text" type="text" name="data[SITE_ADMIN_PAGESIZE]" value="{$data['SITE_ADMIN_PAGESIZE']}" size="20" />&nbsp;
					<div class="onShow">{lang('html-450')}</div>
                    </td>
                </tr>
                </table>
            </div>
			<div id="cnt_3" style="display:none" class="dr_hide">
				<table width="100%" class="table_form">
                <tr>
                    <th width="200">{lang('html-522')}： </th>
                    <td>
                    <input type="radio" name="data[SYS_MEMCACHE]" value="TRUE" {if $data['SYS_MEMCACHE']}checked{/if} />&nbsp;<label>{lang('open')}</label>
                    &nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[SYS_MEMCACHE]" value="FALSE" {if !$data['SYS_MEMCACHE']}checked{/if} />&nbsp;<label>{lang('close')}</label>
                    </td>
                </tr>
                <tr>
                    <th>{lang('html-523')}： </th>
                    <td>
                    <input class="input-text" type="text" name="memcache[hostname]" value="{$memcache['hostname']}" size="32" />&nbsp;
                    </td>
                </tr>
                <tr class="">
                    <th>{lang('html-524')}： </th>
                    <td>
                    <input class="input-text" type="text" name="memcache[port]" value="{$memcache['port']}" size="32" />&nbsp;
					<input class="button" type="button" name="button" id="memcache" onclick="memcache_test()" value="{lang('html-127')}" />
                    </td>
                </tr>
                </table>
            </div>
			<div id="cnt_4" style="display:none" class="dr_hide">
				<table width="100%" class="table_form">
                <tr>
                    <th width="200">{lang('html-609')}： </th>
                    <td>
                    <input type="radio" name="data[SYS_CRON_QUEUE]" value="0" {if !$data['SYS_CRON_QUEUE']}checked{/if} />&nbsp;<label>{lang('html-610')}</label>
                    &nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[SYS_CRON_QUEUE]" value="1" {if $data['SYS_CRON_QUEUE']}checked{/if} />&nbsp;<label>{lang('html-611')}</label>
                    <div class="onShow">{lang('html-612')}</div>
                    </td>
                </tr>
                <tr>
                    <th>{lang('html-613')}： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SYS_CRON_NUMS]" value="{$data['SYS_CRON_NUMS']}" size="19" />&nbsp;
                    <div class="onShow">{lang('html-615')}</div>
                    </td>
                </tr>
                <tr class="">
                    <th>{lang('html-614')}： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SYS_CRON_TIME]" value="{$data['SYS_CRON_TIME']}" size="19" />&nbsp;
                    <div class="onShow">{lang('html-616')}</div>
                    </td>
                </tr>
                <tr class="">
                    <th>{lang('html-782')}： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SYS_ONLINE_NUM]" value="{$data['SYS_ONLINE_NUM']}" size="19" />&nbsp;
                    <div class="onShow">{lang('html-784')}</div>
                    </td>
                </tr>
                <tr class="">
                    <th>{lang('html-783')}： </th>
                    <td>
                    <input class="input-text" type="text" name="data[SYS_ONLINE_TIME]" value="{$data['SYS_ONLINE_TIME']}" size="19" />&nbsp;
                    <div class="onShow">{lang('html-785')}</div>
                    </td>
                </tr>
                </table>
            </div>
            <div id="cnt_5" style="display:none" class="dr_hide">
                <table width="100%" class="table_form">
                    {php $j=0;}
                    {loop $config $i $t}
                    {if strpos($i, 'SYS_CACHE') === 0}
                    {if $j%2==0}
                    <tr>
                    {/if}
                        <th width="200">{$t}： </th>
                        <td {if $j%2==0}width="100"{/if}><input class="input-text" type="text" name="data[{$i}]" value="{intval($data[$i])}" size="11" /></td>
                    {if $j%2==1}
                    </tr>
                    {/if}
                    {php $j++;}
                    {/if}
                    {/loop}
                    <tr class="">
                        <th></th>
                        <td colspan="5">
                            <div style="margin-left:0px;" class="onShow">{lang('html-547')}</div>
                        </td>
                    </tr>
                </table>
            </div>
			<table width="100%" class="table_form">
			<tr>
				<th width="200" style="border:none;">&nbsp;</th>
				<td>
				<input class="button" type="submit" name="submit" value="{lang('submit')}" />
				</td>
			</tr>
			</table>
		</div>
	</div>
</div>
</form>
<script type="text/javascript">
<!--
function memcache_test() {
	$("#memcache").val('Loading');
	$.get("{dr_url('system/memcache')}&"+Math.random(),function(data){
		alert(data);
		$("#memcache").val('{lang('html-127')}');
	})
}
//-->
</script>
{template footer.html}